<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>广告管理 - 后台管理 | {$com.abbreviation}</title>
	<link rel="stylesheet" type="text/css" href="__APP____PUBLIC__/css/admin/style.css" />
	<link href="__APP____PUBLIC__/images/favicon.ico" type="image/ico" rel="shortcut icon">
	<script type="text/javascript" src="__APP____PUBLIC__/js/jquery-1.4.4.js"></script>
	<script type="text/javascript" src="__APP____PUBLIC__/admin/js/common.js"></script>
	<script>
	 function encodingForm(){
		 document.getElementById("productName").value = encodeURIComponent(document.getElementById("productName1").value);
	 }
	</script>
</head>

<body>
	
		<include file="./Tpl/default/Admin/nav.html" />
		
		<div id="wrapper">
			<div id="nav_trail"><a href="__APP__/Admin/">管理首页</a> 广告管理</div>
			<div id="content">
				<!-- 左边菜单 -->
				<include file="./Tpl/default/Admin/left_menu.html" />
				<!-- 左边菜单 -->
			
				
				
	<script>
		menusel('m_ad');
	</script>
	
	
				<div class="right_area">
					<div class="cbar">
			            
			              <ul>
			                <li class="cbar-tag-sel"><a href="__URL__/index">广告管理</a></li>
			    			<!-- <li><a href="__URL__/add">添加广告</a></li> -->
			              </ul>
			         </div><!-- cbar end -->
			   <!--        
			         <div class="cbox">
          <form action="__URL__/index" method="get" name="form1" onsubmit="encodingForm()">
           
            <div class="ydbar">
              <div class="info-title">快速检索</div>
            </div>
            <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table-f">
              <tbody>
              
             
              <tr>
                <td align="right" class="formtdl">房源名称：</td>
                <td colspan="3">
                	<input type="hidden" name="productName" id="productName" size="35" value="{$productName}" />
                	<input type="text" id="productName1" size="30" value="{$productName}" /> </td>
               
               
              </tr>
             
            </tbody></table>
            <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table-x">
              <tbody><tr>
                <td>
                    <div class="c-col-r btn-add">
                      <div class="btn-add-l"></div>
                      <h4><center><input type="submit" value="查询" class="inp-yd"></center></h4>
                      <div class="btn-add-r"></div>
                    </div>
                    </td>
              </tr>
            </tbody></table>
            </form>
            
             -->
            <div class="ydbar">
      			<div class="info-title">广告列表</div>
    		</div>	
            <table align="center" width="100%" cellspacing="0" cellpadding="0" border="0" class="table_b">
              <tbody><tr class="tab-top">
                <td align="center" width="10%"><strong>编号</strong></td>
                <td align="center" width="15%"><strong>标题</strong></td>
                <td align="center" width="10%"><strong>位置</strong></td>
                <td align="center" width="10%"><strong>预览</strong></td>
                <td align="center" width="15%"><strong>修改日期</strong></td>
              </tr>              
               
               
               <volist name="adList" id="ad">
              <tr onmouseout="this.className=&quot;table-d-c&quot;" onmouseover="this.className=&quot;td-m&quot;" class="table-d-c">
				<td align="center">{$ad.id}</td>
                <td align="center"><a target="_blank" href="{$ad.link}">{$ad.name}</a></td>
                
                <td align="center">
                	<foreach name='adArr' item="adArrItem">
                		<eq name="ad['type']" value="$adArrItem" >{$key}</eq>
                	</foreach>
                </td>
                
                
                <td align="center"><img src="__APP__{$ad.path}" width="100" height="50"/></td>
                
                <td align="center"><a href="__URL__/edit?id={$ad.id}">编辑</a>
                </td>
              </tr>
              </volist>
             
			  <tr><td colspan=8 align="center">{$page}</td></tr>
            </tbody></table>
            
             
             
  	
				
             
          </div><!-- cbox end -->
            
			            
			        </div><!-- right_area end -->
				</div>
				
				<div class="clear"></div>
			</div> <!-- content end-->
			<div id="footer"></div>
   		</div><!-- wrapper end-->
</body>
</html>